package ;

import flash.display.Bitmap;
import flash.geom.Point;

import Movable;

/**
 * ...
 * @author 
 */

class MovableSprite extends Movable
{

	public function new(typeId: Int, pos: Point) 
	{
		super(pos);
		
		var bitmap: Bitmap = Resources.Inst.GetSprite(typeId);
		if (bitmap != null) {
			addChild(bitmap);
		}
		else {
			trace("sprite not found, id: " + typeId);
		}		
	}
	
}